//
//  JsonTool.h
//  ZLShang
//
//  Created by wangguangming on 15/7/24.
//  Copyright © 2015年 Amber. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void (^SuccessBlocks)(NSData * data);
typedef void (^FalleileBlock)(NSError *error);

typedef void (^DataBlock)(NSData *data);
@interface JsonTool : NSObject<NSURLConnectionDataDelegate>
    //网络请求数据的类方法block
+ (void)sloveDataFromUrlString:(NSString *)urlString dic:(NSMutableDictionary *)dic success:(SuccessBlocks)seccessBlock falleile:(FalleileBlock)falleile;
//    //网络请求数据的类方法
//+(void)sloveDataFromUrlString:(NSString *)aString dataBlock:(DataBlock)aBlock;

@end
